package com.flute.haflute.jobbox.base;

import java.rmi.Remote;

/**
 * 任务的客户端监听器，监听任务的执行进度等情况
 * 
 */
public interface ClientJobListener extends Remote {
	/**
	 * 作业完成
	 * 
	 * @throws Exception
	 */
	public void jobFinished() throws Exception;

	/**
	 * 作业被人工暂停
	 * 
	 * @throws Exception
	 */
	public void jobPaused() throws Exception;

	/**
	 * 作业启动执行
	 * 
	 * @throws Exception
	 */
	public void jobStarted() throws Exception;

	/**
	 * 作业停止，人为或者因资源异常停止
	 * 
	 * @throws Exception
	 */
	public void jobFailed() throws Exception;
}
